package com.zhku.user.feignclient;

import com.zhku.base.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "goods-api", fallbackFactory = GoodsClientFactory.class)
@RequestMapping("/goods")
public interface GoodsClient {

    @GetMapping("/goods/{id}")
    public RestResponse<TtGoods> getGoods(@PathVariable("id") String id);
}
